#ifndef IODEVICE_H
#define IODEVICE_H

#include <pthread.h>
#include "Queue.h"

typedef struct io{
    int id;
    pthread_cond_t ioCV;//conditionvariable
    pthread_mutex_t ioMTX;//mutex
    QueuePtr ioQueue;//queue
}IODeviceStr;

typedef IODeviceStr* IODevicePtr;

IODevicePtr ioConstructor(int id);

void ioDestructor(IODevicePtr this);

#endif
